package com.huc.rabbit.mq.consumer;

import com.huc.rabbit.mq.config.RabbitPublishSubscribeConfig;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = {RabbitPublishSubscribeConfig.QUEUE_NAME_A})
public class PushSubMessageConsumerA {

    @RabbitHandler
    public void consumer(String msg){
        System.out.println("发布订阅 a:"+msg);
    }


}
